package com.handle.system.web.controller;

import com.handle.system.api.entity.SysLoginLog;
import com.handle.system.api.service.ISysLoginLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangqing
 * @description 系统访问日志控制层
 * @date 2021/4/26 8:00 下午
 */
@RestController
@RequestMapping("/loginLog")
@AllArgsConstructor
@Api(tags = "系统访问日志", value = "SysLoginLogController")
public class SysLoginLogController {

    private final ISysLoginLogService sysLoginLogService;

    @ApiOperation("添加访问日志")
    @PostMapping(value = "/addLoginLog")
    public void addLoginLog(@RequestBody SysLoginLog sysLoginLog){
        sysLoginLogService.addLoginLog(sysLoginLog);
    }
}
